package edu.sandau.b230111.b23011125.Repository;

import edu.sandau.b230111.b23011125.Model.RankList;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.Optional;

public interface RankListRepository extends JpaRepository<RankList,String> {
    public Optional<RankList> findByContestidAndUserid(String contestid, String userid);
    public Page<RankList> findByContestid(String contestid, Pageable page);
}
